'use strict';
class UserController {
  async home(ctx, next) {
    const result = await ctx.app.services.user.home('123++');
    const user = new ctx.app.models.user({ email: 66, password: 999 });
    // 测试 操作models数据库 应该在services中操作
    const data = await user.save();
    console.log(data);
    ctx.body = {
      data: data,
      status: 10000,
      aaa: result
    };
  }
}
module.exports = new UserController();
